<div id="login-top"></div>
<div id="login-content" class="common-w1008 clearfix">
    <div id="login-adver">
        <img width="500" height="360" src="<?php echo Yii::app()->theme->baseUrl . "/resource/img/jiugui.jpg" ?>" />
    </div>
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'enableAjaxValidation' => false,
        'htmlOptions' => array('id' => 'login-form', 'role' => 'form')
    ));
    ?>
    <div class="form-group">
        <div class="col-1">
            <?php echo $form->textField($model, 'username', array('size' => 45, 'maxlength' => 45, 'class' => 'form-control', 'id' => 'inputEmail3', 'autocomplete' => 'off', 'placeholder' => $model->getAttributeLabel('username'))); ?>
        </div>
        <div class="col-2">
            <?php echo $form->error($model, 'username', array('class' => ' error')); ?>
        </div>
    </div>
    <div class="form-group">
        <div class="col-1">
            <?php echo $form->passwordField($model, 'password', array('size' => 45, 'maxlength' => 45, 'class' => 'form-control', 'id' => 'inputPassword3', 'autocomplete' => 'off', 'placeholder' => $model->getAttributeLabel('password'))); ?>
        </div>
        <div class="col-2">
            <?php echo $form->error($model, 'password', array('class' => ' error')); ?>
        </div>
    </div>
    <?php if ($model->displayVeryCode()): ?>
        <div class="form-group">
            <div class="col-1">
                <?php echo $form->textField($model, 'verifyCode', array('size' => 20, 'maxlength' => 5, 'class' => 'form-control', 'placeholder' => $model->getAttributeLabel('verifyCode'))); ?>
            </div>
            <div class="col-2">
                <?php $this->widget('CCaptcha', array('showRefreshButton' => false, 'clickableImage' => true, 'imageOptions' => array('class' => 'span2 input', 'alt' => '换一个', 'title' => '换一个', 'style' => 'cursor:pointer'))); ?>
            </div>
            <div class="col-3">
                <?php echo $form->error($model, 'verifyCode', array('class' => 'promptMessage error')); ?>
            </div>
        </div>
    <?php endif; ?>
    <div class="form-group">
        <div class="col-1">
            <div class="checkbox">
                <label>
                    <?php echo $form->checkBox($model, 'rememberMe'); ?>
                    <?php echo $form->labelEx($model, 'rememberMe', array('for' => 'rememberMe', 'class' => 'pull-left')); ?>
                </label>
            </div>
        </div>
    </div>
    <div class="form-group m-0">
        <div class="col-1">
            <button type="submit" class="form-control">
                登录
                <i class="min-right carousel pull-right"></i>
            </button>
        </div>
    </div>
    <?php $this->endWidget(); ?>
</div>

